TGML Image Element: <Image>
Image represents a raster image. Image supports JPEG and PNG images.
The image data is stored as a Base64 encoded string in the CDATA section of the Image element.
<Image Left="100" Top="100" Width="100" Height="100" ...>
<![CDATA [iVBORwOKGgoAAAANSUh...SUVORK5CYII=]]>
</Image>
The image data is accessible through the Content attribute which means that it can be bound and dynamically updated in View mode.
Attribute | Type | Description |
---|---|---|
Content |
String |
The image data (Base64 encoded). |
Height |
Double |
The height of the image. |
Left |
Double |
The x coordinate of the upper left corner of the image. |
Opacity |
Double |
A value between "0.0" (transparent) and "1.0" (opaque) |
Top |
Double |
The y coordinate of the upper left corner of the image. |
Visibility | Visibility |
Specifies if the element is visible or not. |
Width |
Double |
The width of the image. |